<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>校园二手书市场管理平台</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" th:href="@{/favicon.ico}" type="image/x-icon" />
    <link rel="stylesheet" th:href="@{./css/font.css}">
	<link rel="stylesheet" th:href="@{./css/xadmin.css}">
    <link rel="stylesheet" th:href="@{https://cdn.bootcss.com/Swiper/3.4.2/css/swiper.min.css}">
    <script type="text/javascript" th:src="@{https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js}"></script>
    <script type="text/javascript" th:src="@{https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min.js}"></script>
    <script src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" th:src="@{./js/xadmin.js}"></script>

</head>
<body>
    <div class="login-logo"><h1>校园二手书市场</h1></div>

    <!-- 提交表单开始-->
    <div class="login-box">
        <form class="layui-form layui-form-pane" th:action="@{/user/login}">
            <h3>登录你的帐号</h3>
            <label class="login-title" >帐号</label>

            <div class="layui-form-item">
                <label class="layui-form-label login-form"><i class="iconfont">&#xe6b8;</i></label>
                <div class="layui-input-inline login-inline">
                    <input type="text" name="username" lay-verify="required" placeholder="请输入你的帐号" autocomplete="off" class="layui-input">
                </div>
            </div>

            <label class="login-title" >密码</label>
            <div class="layui-form-item">
                <label class="layui-form-label login-form"><i class="iconfont">&#xe82b;</i></label>
                <div class="layui-input-inline login-inline">
                    <input type="password" name="password" lay-verify="required" placeholder="请输入你的密码" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="form-actions">
                <button class="btn btn-warning pull-right" lay-submit lay-filter="login"  type="submit">登录</button>
                <div class="forgot"><a href="#" class="forgot">忘记帐号或者密码</a></div>
<!--后期-->

            </div>
            <p style="color:red;font-weight:900;">[[${session.msg}]]</p>

        </form>
    </div>
    <!--    提交表单结束-->

    <!-- 背景开始-->
	<div class="bg-changer">
        <div class="swiper-container changer-list">
            <div class="swiper-wrapper">
                <div class="swiper-slide"><img class="item" th:src="@{./images/a.jpg}" alt=""></div>
                <div class="swiper-slide"><img class="item" th:src="@{./images/b.jpg}" alt=""></div>
                <div class="swiper-slide"><img class="item" th:src="@{./images/c.jpg}" alt=""></div>
                <div class="swiper-slide"><img class="item" th:src="@{./images/d.jpg}" alt=""></div>
                <div class="swiper-slide"><img class="item" th:src="@{./images/e.jpg}" alt=""></div>
                <div class="swiper-slide"><img class="item" th:src="@{./images/f.jpg}" alt=""></div>
                <div class="swiper-slide"><img class="item" th:src="@{./images/g.jpg}" alt=""></div>
                <div class="swiper-slide"><img class="item" th:src="@{./images/h.jpg}" alt=""></div>
                <div class="swiper-slide"><img class="item" th:src="@{./images/i.jpg}" alt=""></div>
                <div class="swiper-slide"><img class="item" th:src="@{./images/j.jpg}" alt=""></div>
                <div class="swiper-slide"><img class="item" th:src="@{./images/k.jpg}" alt=""></div>
                <div class="swiper-slide"><span class="reset">初始化</span></div>
            </div>
        </div>
        <div class="bg-out"></div>
        <div id="changer-set"><i class="iconfont">&#xe696;</i></div>   
    </div>
    <!--  背景结束-->


<!--    <script>-->
<!--        $(function  () {-->
<!--            layui.use('form', function(){-->
<!--              var form = layui.form();-->
<!--              //监听提交-->
<!--              form.on('submit(login)', function(data){-->
<!--                layer.msg(JSON.stringify(data.field),function(){-->
<!--                    location.href='index.html'-->
<!--                });-->
<!--                return false;-->
<!--              });-->
<!--            });-->
<!--        })-->
<!--        -->
<!--    </script>-->

</body>
</html>